﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Battleship_569
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnCreateNew_Click(object sender, EventArgs e)
        {
            Global.isCreateGame = true;
            Game game = new Game();
            game.Show();
            this.Visible = false;
        }

        private void btnJoinGame_Click(object sender, EventArgs e)
        {
            Global.isCreateGame = false;
            JoinGame joinGame = new JoinGame();
            joinGame.Show();
            this.Visible = false;

        }
    }
}
